pub fn current_time() -> u32 {
    match std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH) {
        Ok(result) => result.as_nanos() as u32,
        _ => 0,
    }
}
